/***********************************************************************
 * Module:  WaixieCheckReport.java
 * Author:  eric
 * Purpose: Defines the Class WaixieCheckReport
 ***********************************************************************/
package com.mes.check.domain;

import java.util.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.BatchSize;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.context.annotation.Lazy;

import com.mes.common.domain.BasicModel;

@Entity()
@Table(name = "M_WAIXIE_CHECK_REPORT")
@BatchSize(size = 20)
@Lazy(value = true)
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class WaixieCheckReport extends BasicModel implements java.io.Serializable {

	@Id
	@GenericGenerator(name = "uniqueId", strategy = "assigned")
	@Column(name = "UNIQUEID")
	public String uniqueId;
	/**
	 * 机型
	 * 
	 */
	@Column(name = "BIG_MODEL", length = 100)
	public String bigModel;
	/**
	 * 型号
	 * 
	 */
	@Column(name="MODEL")
	public String model;
	/**
	 * 图号
	 * 
	 */
	@Column(name="DRAWINGID")
	public String drawingId;
	/**
	 * 名称
	 * 
	 */
	@Column(name="PART_NAME")
	public String partName;
	/**
	 * 批次
	 * 
	 */
	@Column(name="BATCHNUM")
	public String batchNum;
	/**
	 * 部门编号
	 * 
	 */
	@Column(name="DEPTID")
	public String deptId;
	/**
	 * 部门名称
	 * 
	 */
	@Column(name="DEPTNAME")
	public String deptName;
	/**
	 * 外协单位编号
	 * 
	 */
	@Column(name="CO_DEPTID")
	public String coDeptId;
	/**
	 * 外协单位名称
	 * 
	 */
	@Column(name="CO_DEPTNAME")
	public String coDeptName;
	/**
	 * 加工工序
	 * 
	 */
	@Column(name="OPERATION_IDDESCS")
	public String operationIdDescs;
	/**
	 * 发出数量
	 * 
	 */
	@Column(name="SEND_QTY")
	public Float sendQty;
	/**
	 * 自身发现不合格数
	 * 
	 */
	@Column(name="BEFOR_CHECK_DEFECT_QTY")
	public Float beforeCheckDefectQty;
	/**
	 * 交检数量
	 * 
	 */
	@Column(name="SUBMIT_CHECK_QTY")
	public Float submitCheckQty;
	/**
	 * 实际返厂实际
	 * 
	 */
	@Column(name="ACT_BACK_TIME")
	public Date actBackTime;
	/**
	 * 审理单号
	 * 
	 */
	@Column(name="DEFECTJUDGE_BILLNUMBER")
	public String defectJudgeBillNumber;
	/**
	 * 报废数
	 * 
	 */
	@Column(name="REJECT_QTY")
	public Float rejectQty;
	/**
	 * 返工数
	 * 
	 */
	@Column(name="REWORK_QTY")
	public Float reworkQty;
	/**
	 * 让步数
	 * 
	 */
	@Column(name="REPAIR_QTY")
	public Float repairQty;
	/**
	 * 一次交检合格数
	 * 
	 */
	@Column(name="FIRST_CHECK_PASS_QTY")
	public Float firstCheckPassQty;
	/**
	 * 合格数
	 * 
	 */
	@Column(name="PASS_QTY")
	public Float passQty;
	/**
	 * 检验员编号
	 * 
	 */
	@Column(name="CHECKER")
	public String checkerUid;
	/**
	 * 检验员
	 * 
	 */
	@Column(name="CHECKER_NAME")
	public String checkerName;
	/**
	 * 零件任务唯一号
	 * 
	 */
	@Column(name="PARTTASKUID")
	public String partTaskUid;
	
	

	public WaixieCheckReport() {
	}

	/**
	 * Get value of uniqueId
	 *
	 * @return uniqueId
	 */
	public java.lang.String getUniqueId() {
		return uniqueId;
	}

	/**
	 * Set value of uniqueId
	 *
	 * @param newUniqueId
	 */
	public void setUniqueId(java.lang.String newUniqueId) {
		this.uniqueId = newUniqueId;
	}

	/**
	 * Get value of bigModel
	 *
	 * @return bigModel
	 */
	public java.lang.String getBigModel() {
		return bigModel;
	}

	/**
	 * Set value of bigModel
	 *
	 * @param newBigModel
	 */
	public void setBigModel(java.lang.String newBigModel) {
		this.bigModel = newBigModel;
	}

	/**
	 * Get value of model
	 *
	 * @return model
	 */
	public java.lang.String getModel() {
		return model;
	}

	/**
	 * Set value of model
	 *
	 * @param newModel
	 */
	public void setModel(java.lang.String newModel) {
		this.model = newModel;
	}

	/**
	 * Get value of drawingId
	 *
	 * @return drawingId
	 */
	public java.lang.String getDrawingId() {
		return drawingId;
	}

	/**
	 * Set value of drawingId
	 *
	 * @param newDrawingId
	 */
	public void setDrawingId(java.lang.String newDrawingId) {
		this.drawingId = newDrawingId;
	}

	/**
	 * Get value of partName
	 *
	 * @return partName
	 */
	public java.lang.String getPartName() {
		return partName;
	}

	/**
	 * Set value of partName
	 *
	 * @param newPartName
	 */
	public void setPartName(java.lang.String newPartName) {
		this.partName = newPartName;
	}

	/**
	 * Get value of batchNum
	 *
	 * @return batchNum
	 */
	public java.lang.String getBatchNum() {
		return batchNum;
	}

	/**
	 * Set value of batchNum
	 *
	 * @param newBatchNum
	 */
	public void setBatchNum(java.lang.String newBatchNum) {
		this.batchNum = newBatchNum;
	}

	/**
	 * Get value of deptId
	 *
	 * @return deptId
	 */
	public java.lang.String getDeptId() {
		return deptId;
	}

	/**
	 * Set value of deptId
	 *
	 * @param newDeptId
	 */
	public void setDeptId(java.lang.String newDeptId) {
		this.deptId = newDeptId;
	}

	/**
	 * Get value of deptName
	 *
	 * @return deptName
	 */
	public java.lang.String getDeptName() {
		return deptName;
	}

	/**
	 * Set value of deptName
	 *
	 * @param newDeptName
	 */
	public void setDeptName(java.lang.String newDeptName) {
		this.deptName = newDeptName;
	}

	/**
	 * Get value of coDeptId
	 *
	 * @return coDeptId
	 */
	public java.lang.String getCoDeptId() {
		return coDeptId;
	}

	/**
	 * Set value of coDeptId
	 *
	 * @param newCoDeptId
	 */
	public void setCoDeptId(java.lang.String newCoDeptId) {
		this.coDeptId = newCoDeptId;
	}

	/**
	 * Get value of coDeptName
	 *
	 * @return coDeptName
	 */
	public java.lang.String getCoDeptName() {
		return coDeptName;
	}

	/**
	 * Set value of coDeptName
	 *
	 * @param newCoDeptName
	 */
	public void setCoDeptName(java.lang.String newCoDeptName) {
		this.coDeptName = newCoDeptName;
	}

	/**
	 * Get value of operationIdDescs
	 *
	 * @return operationIdDescs
	 */
	public java.lang.String getOperationIdDescs() {
		return operationIdDescs;
	}

	/**
	 * Set value of operationIdDescs
	 *
	 * @param newOperationIdDescs
	 */
	public void setOperationIdDescs(java.lang.String newOperationIdDescs) {
		this.operationIdDescs = newOperationIdDescs;
	}

	/**
	 * Get value of sendQty
	 *
	 * @return sendQty
	 */
	public Float getSendQty() {
		return sendQty;
	}

	/**
	 * Set value of sendQty
	 *
	 * @param newSendQty
	 */
	public void setSendQty(Float newSendQty) {
		this.sendQty = newSendQty;
	}

	/**
	 * Get value of beforeCheckDefectQty
	 *
	 * @return beforeCheckDefectQty
	 */
	public Float getBeforeCheckDefectQty() {
		return beforeCheckDefectQty;
	}

	/**
	 * Set value of beforeCheckDefectQty
	 *
	 * @param newBeforeCheckDefectQty
	 */
	public void setBeforeCheckDefectQty(Float newBeforeCheckDefectQty) {
		this.beforeCheckDefectQty = newBeforeCheckDefectQty;
	}

	/**
	 * Get value of submitCheckQty
	 *
	 * @return submitCheckQty
	 */
	public Float getSubmitCheckQty() {
		return submitCheckQty;
	}

	/**
	 * Set value of submitCheckQty
	 *
	 * @param newSubmitCheckQty
	 */
	public void setSubmitCheckQty(Float newSubmitCheckQty) {
		this.submitCheckQty = newSubmitCheckQty;
	}

	/**
	 * Get value of actBackTime
	 *
	 * @return actBackTime
	 */
	public java.util.Date getActBackTime() {
		return actBackTime;
	}

	/**
	 * Set value of actBackTime
	 *
	 * @param newActBackTime
	 */
	public void setActBackTime(java.util.Date newActBackTime) {
		this.actBackTime = newActBackTime;
	}

	/**
	 * Get value of defectJudgeBillNumber
	 *
	 * @return defectJudgeBillNumber
	 */
	public java.lang.String getDefectJudgeBillNumber() {
		return defectJudgeBillNumber;
	}

	/**
	 * Set value of defectJudgeBillNumber
	 *
	 * @param newDefectJudgeBillNumber
	 */
	public void setDefectJudgeBillNumber(java.lang.String newDefectJudgeBillNumber) {
		this.defectJudgeBillNumber = newDefectJudgeBillNumber;
	}

	/**
	 * Get value of rejectQty
	 *
	 * @return rejectQty
	 */
	public Float getRejectQty() {
		return rejectQty;
	}

	/**
	 * Set value of rejectQty
	 *
	 * @param newRejectQty
	 */
	public void setRejectQty(Float newRejectQty) {
		this.rejectQty = newRejectQty;
	}

	/**
	 * Get value of reworkQty
	 *
	 * @return reworkQty
	 */
	public Float getReworkQty() {
		return reworkQty;
	}

	/**
	 * Set value of reworkQty
	 *
	 * @param newReworkQty
	 */
	public void setReworkQty(Float newReworkQty) {
		this.reworkQty = newReworkQty;
	}

	/**
	 * Get value of repairQty
	 *
	 * @return repairQty
	 */
	public Float getRepairQty() {
		return repairQty;
	}

	/**
	 * Set value of repairQty
	 *
	 * @param newRepairQty
	 */
	public void setRepairQty(Float newRepairQty) {
		this.repairQty = newRepairQty;
	}

	/**
	 * Get value of firstCheckPassQty
	 *
	 * @return firstCheckPassQty
	 */
	public Float getFirstCheckPassQty() {
		return firstCheckPassQty;
	}

	/**
	 * Set value of firstCheckPassQty
	 *
	 * @param newFirstCheckPassQty
	 */
	public void setFirstCheckPassQty(Float newFirstCheckPassQty) {
		this.firstCheckPassQty = newFirstCheckPassQty;
	}

	/**
	 * Get value of passQty
	 *
	 * @return passQty
	 */
	public Float getPassQty() {
		return passQty;
	}

	/**
	 * Set value of passQty
	 *
	 * @param newPassQty
	 */
	public void setPassQty(Float newPassQty) {
		this.passQty = newPassQty;
	}

	/**
	 * Get value of checkerUid
	 *
	 * @return checkerUid
	 */
	public java.lang.String getCheckerUid() {
		return checkerUid;
	}

	/**
	 * Set value of checkerUid
	 *
	 * @param checkerUid
	 */
	public void setCheckerUid(java.lang.String checkerUid) {
		this.checkerUid = checkerUid;
	}

	/**
	 * Get value of checkerName
	 *
	 * @return checkerName
	 */
	public java.lang.String getCheckerName() {
		return checkerName;
	}

	/**
	 * Set value of checkerName
	 *
	 * @param newCheckerName
	 */
	public void setCheckerName(java.lang.String newCheckerName) {
		this.checkerName = newCheckerName;
	}

	// /**
	// * Get value of waixieCheckReportPK.
	// *
	// * @return waixieCheckReportPK object
	// */
	// public WaixieCheckReportPK getWaixieCheckReportPK() {
	// return new WaixieCheckReportPK(uniqueId);
	// }
	//
	// /**
	// * Set value of waixieCheckReportPK.
	// *
	// * @param pk
	// */
	// public void setWaixieCheckReportPK(WaixieCheckReportPK pk) {
	// if (pk != null) {
	// this.uniqueId = pk.getUniqueId();
	// }
	// }

	public java.lang.String getPartTaskUid() {
		return partTaskUid;
	}

	public void setPartTaskUid(java.lang.String partTaskUid) {
		this.partTaskUid = partTaskUid;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	public boolean equals(Object other) {

		if (other == null)
			return false;

		if (other == this)
			return true;

		if (!(other instanceof WaixieCheckReport))
			return false;

		WaixieCheckReport cast = (WaixieCheckReport) other;

		if (this.uniqueId == null ? cast.getUniqueId() != this.uniqueId : !this.uniqueId.equals(cast.getUniqueId()))
			return false;

		return true;
	}

}